package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.EnterpriseBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EnterpriseMapper extends RootMapper<EnterpriseBean> {

    /**
     * 根据条件分页查询count
     *
     * @param params
     * @return
     */
    long getPageCount(@Param("params") Map<String, Object> params);

    /**
     * 根据条件分页查询
     *
     * @param params
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<EnterpriseBean> getPage(@Param("params") Map<String, Object> params, @Param("pageNum") int pageNum,
                                 @Param("pageSize") int pageSize);

    /**
     * 支付记录数
     *
     * @return
     */
    int getEnterpriseCount();

    EnterpriseBean getByScheduleId(@Param("scheduleId") int scheduleId);

    /**
     * 根据排期ids查询
     *
     * @param scheduleIds 排期ids
     * @return
     */
    List<EnterpriseBean> getByScheduleIds(@Param("scheduleIds") List<Integer> scheduleIds);
}